﻿namespace Hidistro.UI.Common.Controls
{
    using Hidistro.Membership.Context;
    using System;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class LicenseControl : WebControl
    {
        private readonly string renderFormat = "<a href=\"http://www.jusekeji.com\">橘色科技技术支持</a>";

        protected override void Render(HtmlTextWriter writer)
        {
            HiContext current = HiContext.Current;
            if (!CopyrightLicenser.CheckCopyright())
            {
                writer.Write(string.Format(this.renderFormat, HiContext.Current.SiteSettings.SiteUrl));
            }
        }
    }
}

